package cn.sciento.transfer.infra.feign;

import cn.sciento.transfer.api.dto.DatasourceDTO;
import cn.sciento.transfer.infra.feign.fallback.HpfmRemoteServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "${stong.service.platform.name:stong-platform}",contextId = "HpfmRemoteService", fallback = HpfmRemoteServiceFallbackImpl.class, path = "/v1")
public interface HpfmRemoteService {
  @RequestMapping(method = {RequestMethod.GET}, path = {"/profile-value/platform-value"})
  String getProfileValueByProfileName(@RequestParam("profileName") String paramString);
  
  @RequestMapping(method = {RequestMethod.GET}, path = {"/datasources/{datasourceId}"})
  DatasourceDTO detail(@RequestParam("tenantId") Long paramLong1, @PathVariable("datasourceId") Long paramLong2);
}
